Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Conversation

@sanjam-deriv
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Jun 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-api-docs ✅ Ready (Inspect) Visit Preview Jun 20, 2023 6:28am

@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #188 (3a7afde) into master (8bef163) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #188   +/-   ##
=======================================
  Coverage   96.51%   96.51%           
=======================================
  Files         107      107           
  Lines        1492     1492           
  Branches      186      186           
=======================================
  Hits         1440     1440           
  Misses          9        9           
  Partials       43       43           
Impacted Files Coverage Δ
...atures/dashboard/components/ApiTokenCard/index.tsx 100.00% <ø> (ø)
...board/components/Dialogs/DeleteAppDialog/index.tsx 100.00% <ø> (ø)
...mponents/ApiTokenTable/DeleteTokenDialog/index.tsx 100.00% <100.00%> (ø)

Comment on lines -49 to +55
const cancelButton = screen.getByRole('button', { name: /no, keep it/i });
const cancelButton = screen.getByRole('button', { name: /Cancel/i });
expect(okButton).toBeInTheDocument();
expect(cancelButton).toBeInTheDocument();
});

it('Should call onClose on cancel button click', async () => {
const cancelButton = screen.getByRole('button', { name: /no, keep it/i });
const cancelButton = screen.getByRole('button', { name: /cancel/i });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Question]: why one of the word starts with a capital letter and not the other one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything you write in between the // it only checks for the words inside the ui and ignores capital letters. so their will be no differnce if we use capital or small letters in the test case

@sanjam-deriv sanjam-deriv requested a review from matin-deriv June 16, 2023 06:57
matin-deriv
matin-deriv previously approved these changes Jun 19, 2023
@hubert-deriv hubert-deriv merged commit 987abd1 into binary-com:master Jun 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants